/*
 * @Author: hc
 * @Date: 2024-03-04 14:00:15
 * @LastEditTime: 2024-03-04 14:00:32
 * @LastEditors: hc
 * @Description:
 */
import { iup } from '../../util';
export async function getExpressionFuncTree() {
  const d = await iup.request.post({
    url: '/iup-rule-engine/rule/expression/getExpressionFuncTree'
  });
  return d.data;
}

export async function getExpressionFieldTree(data) {
  const d = await iup.request.body({
    url: '/iup-rule-engine/rule/expression/getExpressionFieldTree',
    data
  });
  return d.data;
}

//校验
export async function expressionValidate(data) {
  const d = await iup.request.body({
    url: '/iup-rule-engine/rule/expression/expressionValidate',
    data
  });
  return d.data;
}
